package com.seari.custody.service.Impl;

import com.seari.custody.bean.Role;
import com.seari.custody.mapper.RoleMapper;
import com.seari.custody.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("RoleService")
public class RoleServiceImpl implements RoleService{

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getAllById(Role id) {
        return roleMapper.getAllById(id);
    }

    @Override
    public Integer getAddRole(Role add) {
        return roleMapper.getAddRole(add);
    }

    @Override
    public int getUpdateRole(Map<String, Object> params) {
        return roleMapper.getUpdateRole(params);
    }

    @Override
    public int deleteRole(String id) {
        return roleMapper.deleteRole(id);
    }
}
